package com.huiyun.project.im.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author bogon
 * @since 2020-08-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ImMessage对象", description = "")
public class ImMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "connector端产生的ID")
    private String clientMsgId;

    private String fromUserId;

    private String toUserId;

    @ApiModelProperty(value = "如：0:text、1:image、2:voice、3:vedio、4:music、5:news")
    private Integer msgType;

    @ApiModelProperty(value = "1.公聊 2.私聊 3.客服(客服聊天)")
    private Integer chatType;

    @ApiModelProperty(value = "内容(每次最多1000个字符)")
    private String content;

    @ApiModelProperty(value = "会话ID")
    private String sessionId;

    @ApiModelProperty(value = "租户ID")
    private String csTenantId;

    @ApiModelProperty(value = "发送到群组")
    @TableField("group_Id")
    private String groupId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    private String extras;

    @ApiModelProperty(value = "状态 1.正常 2.撤销(双方不显示) 3.删除(删除方不显示)")
    private Integer status;


}
